<template>
  <view class="waterfall-wrap">
    <u-waterfall v-model="list" ref="uWaterfall">
			<template  v-slot:left="{leftList}">
				<view class="list">
					<good :good="item"  v-for="(item, index) in leftList" :key="index"></good>
				</view>
			</template>
      <template  v-slot:right="{rightList}">
				<view class="list">
					<good :good="item"  v-for="(item, index) in rightList" :key="index"></good>
				</view>
			</template>
    </u-waterfall>
  </view>
</template>

<script>
	import Good from '@/components/home/good.vue'
  export default {
    props: {
      list: Array
    },
		components: { Good }
  }
</script>

<style lang="scss" scoped>
	.waterfall-wrap {
		background: #f4f4f4;
		padding: 10rpx;
	}
	.list {
		padding-left: 10rpx;
		padding-right: 10rpx;
		box-sizing: border-box;
	}

</style>
